﻿/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/

CKEDITOR.editorConfig = function( config )
{
	// Define changes to default configuration here. For example:
	config.language = 'zh-cn';
	config.font_names = '宋体;楷体_GB2312;新宋体;黑体;隶书;幼圆;微软雅黑;Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana;' ;
	config.uiColor = '#eeeeee';

	config.resize_enabled = false;
	
	/*
	config.toolbar=
	[
	['Source','-','Save','NewPage','Preview','-','Templates'],
	['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print','SpellChecker','Scayt'],
	['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
	['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
	'/',
	['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
	['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
	['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
	['Link','Unlink','Anchor'],
	['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
	'/',
	['Styles','Format','Font','FontSize'],
	['TextColor','BGColor'],
	['Maximize','ShowBlocks','-','About']
	];
	*/
	config.toolbar = "Basic";
	CKEDITOR.config.toolbar_Basic=
	[
	['Source','-','PasteText','PasteFromWord','-','Find','Replace'],
	['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
	['NumberedList','BulletedList','-','Outdent','Indent'],
	['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
	['SelectAll','RemoveFormat','-','Link','Unlink'],
	'/',
	['Styles','Format','Font','FontSize','-','TextColor','BGColor'],
	['Image','Flash','Table','SpecialChar'],
	['ShowBlocks','-','Templates','-','Preview','-','Maximize']
	];

	CKEDITOR.config.toolbar_Simple=
	[
	['Source','-','PasteText','PasteFromWord'],
	['TextColor', 'Bold','Italic','Underline','Strike'],
	['Font','FontSize'],
	['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
	['Link','Unlink'],
	['Image','Table','-', 'RemoveFormat']
	];
	
	CKEDITOR.config.toolbar_Custom=
	[
	['-','PasteText','PasteFromWord'],
	['TextColor', 'Bold','Italic','Underline','Strike'],
	['Font','FontSize'],
	['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
	['Link','Unlink'],
	['Flash','Image','Table','-', 'RemoveFormat'],
	['Preview','-','Maximize']
	];
	
	
	//config.skin='v2';
	//宽度
	//config.width = 800;
	//高度
	//config.height = 400;
	//config.filebrowserImageUploadUrl = '../editor/upload.php?type=img&uploadDir=';
	//config.filebrowserFlashUploadUrl = '../editor/upload.php?type=flash';
};
